package com.tencent.wepay.protocol.mchpay.domain;

import com.tencent.wepay.protocol.mchpay.request.TransferRequest.CheckNameENUM;
public class Transfer{
	private String deviceInfo;
	private CheckNameENUM checkName=CheckNameENUM.NO_CHECK;
	private String openid;
	private String realName;
	private Integer amount;
	private String desc;
	private String tradeNo;
	public static class Builder{
		private String deviceInfo;
		private CheckNameENUM checkName=CheckNameENUM.NO_CHECK;
		private String openid;
		private String realName;
		private Integer amount;
		private String desc;
		private String tradeNo;
		public Builder(String openid,int amount,String tradeNo,String desc) {
			this.openid=openid;
			this.amount=amount;
			this.tradeNo=tradeNo;
			this.desc=desc;
		}
		public Builder checkName(CheckNameENUM checkName,String realName){
			this.checkName=checkName;
			this.realName=realName;
			return this;
		}
		public Transfer build(){
			return new Transfer(this);
		}
	}
	private Transfer(Builder builder) {
		this.amount=builder.amount;
		this.checkName=builder.checkName;
		this.desc=builder.desc;
		this.deviceInfo=builder.deviceInfo;
		this.openid=builder.openid;
		this.realName=builder.realName;
		this.tradeNo=builder.tradeNo;
	}
	public String getDeviceInfo() {
		return deviceInfo;
	}
	public void setDeviceInfo(String deviceInfo) {
		this.deviceInfo = deviceInfo;
	}
	public CheckNameENUM getCheckName() {
		return checkName;
	}
	public void setCheckName(CheckNameENUM checkName) {
		this.checkName = checkName;
	}
	public String getOpenid() {
		return openid;
	}
	public void setOpenid(String openid) {
		this.openid = openid;
	}
	public String getRealName() {
		return realName;
	}
	public void setRealName(String realName) {
		this.realName = realName;
	}
	public Integer getAmount() {
		return amount;
	}
	public void setAmount(Integer amount) {
		this.amount = amount;
	}
	public String getDesc() {
		return desc;
	}
	public void setDesc(String desc) {
		this.desc = desc;
	}
	public String getTradeNo() {
		return tradeNo;
	}
	public void setTradeNo(String tradeNo) {
		this.tradeNo = tradeNo;
	}
}
